<%@page import="news.News"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@page import="java.util.ArrayList,java.text.SimpleDateFormat"%>
<%@page import="news.Newsdao,java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
News news = (News) request.getSession().getAttribute("news");
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");//定义格式，不显示毫秒
Timestamp now = news.getPubtime();
String str = df.format(now);
String[] b = str.split("-");
String year = b[0];
String month = b[1];
String today = str.substring(8);
%>
<title><%=news.getTitle() %></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="Author" content="redheart47@163.com" />
<meta name="Keywords" content="重庆工程学院" />
<meta name="Description" content="重庆工程学院" />
<link rel="stylesheet" type="text/css" href="../js/content.css"/>
</head>
<style type="text/css">
body{
  background-image: url(../images/1.png);
}
</style>
<body>
	<div id="container" class="cen clearfix">
		<div id="text" class="cen">
			<h1><%=news.getTitle() %></h1>
			<h2></h2>
			<h3><%=year +"/"+month +"/"+today %> 发布人：<%=news.getUname()%></h3>
			<div id="showcontent">
			<p style="text-align: justify; line-height: 2; text-indent: 2em; font-family: 宋体; font-size: 12pt; margin-top: 0px; margin-bottom: 0px; -ms-text-justify: inter-ideograph;"><%=news.getContent() %></p>
				</div>

			<div class="bshare-custom" style="float: right">
				<a title="分享到QQ空间" class="bshare-qzone"></a><a title="分享到新浪微博"
					class="bshare-sinaminiblog"></a><a title="分享到人人网"
					class="bshare-renren"></a><a title="分享到腾讯微博" class="bshare-qqmb"></a><a
					title="分享到网易微博" class="bshare-neteasemb"></a><a title="更多平台"
					class="bshare-more bshare-more-icon more-style-addthis"></a><span
					class="BSHARE_COUNT bshare-share-count">0</span>
			</div>
			<script type="text/javascript" charset="utf-8"
				src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script>
			<script type="text/javascript" charset="utf-8"
				src="http://static.bshare.cn/b/bshareC0.js"></script>
		</div>

	</div>
	<script type="text/javascript" language="javascript">
		scrollTop();
		getHits('', '29991');
	</script>

</body>
</html>